<?php

use think\facade\Route;
// 管理
Route::POST('login', 'manager/login')->allowCrossDomain();
Route::POST('logout', 'manager/logout')->allowCrossDomain();
Route::get('captcha', 'manager/captcha')->allowCrossDomain();

// API
Route::rule('uploadFile', 'upload/file', 'POST')->allowCrossDomain();
Route::rule('uploadImage', 'upload/image', 'POST')->allowCrossDomain();

Route::POST('/banner/:name', 'Banner/:name')->allowCrossDomain();
Route::POST('/notice/:name', 'Notice/:name')->allowCrossDomain();
Route::POST('/store/:name', 'Store/:name')->allowCrossDomain();
Route::POST('/tag/:name', 'Tag/:name')->allowCrossDomain();
Route::POST('/systemconfig/:name', 'SystemConfig/:name')->allowCrossDomain();
Route::POST('/setting/:name', 'Setting/:name')->allowCrossDomain();
Route::POST('/station/:name', 'Station/:name')->allowCrossDomain();
Route::POST('/form/:name', 'Form/:name')->allowCrossDomain();
Route::POST('user/:name', 'User/:name')->allowCrossDomain();
Route::GET('/form/getList', 'Form/getList')->allowCrossDomain();
Route::POST('/manager/:name', 'manager/:name')->allowCrossDomain();
Route::POST('/car/:name', 'car/:name')->allowCrossDomain();
Route::POST('/order/:name', 'order/:name')->allowCrossDomain();